namespace GarageManagement.Migrations
{
    using System;
    using System.Data.Entity.Migrations;

    public partial class InitialCreate : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.Customer",
                c => new
                    {
                        CustomerId = c.Int(nullable: false, identity: true),
                        Code = c.String(maxLength: 10),
                        ContactName = c.String(maxLength: 1024),
                        Address = c.String(maxLength: 1024),
                        City = c.String(maxLength: 1024),
                        Telephone = c.String(maxLength: 255),
                        MobilePhone = c.String(maxLength: 255),
                        Fax = c.String(maxLength: 255),
                        Email = c.String(maxLength: 255),
                        CustomerType = c.Int(nullable: false, defaultValue: 1),
                    })
                .PrimaryKey(t => t.CustomerId);

        }

        public override void Down()
        {
            DropTable("dbo.Customer");
        }
    }
}
